package net.ak.dao;

import java.util.List;

import net.ak.model.User;
import net.ak.model.UserMaster;

public interface UserMasterDao {
	
	/**
	 * This method is used to save or update {@link UserMaster}.
	 * @param master
	 * @return
	 */
	boolean saveOrUpdate(UserMaster master);

	/**
	 * This method is used to search UserMaster by user id 
	 * @param user
	 * @return
	 */
	List<UserMaster> listUserMasterByUser(User user);
	
	/**
	 * This method is used to search UserMaster by ip 
	 * @param user
	 * @return
	 */
	List<UserMaster> listUserMasterByIP(String ip);
	
	/**
	 * This method is used to search UserMaster by browser
	 * @param user
	 * @return
	 */
	List<UserMaster> listUserMasterByBrowser(String browser);
	
	/**
	 * This method is used to list all usermasters
	 * @param user
	 * @return
	 */
	List<UserMaster> listUserMaster();
}
